import request from '@/utils/request'

// 查询tuyurt列表
export function listCount(query) {
  return request({
    url: '/report/channel/list',
    method: 'get',
    params: query
  })
}

// 查询tuyurt详细
export function getCount(id) {
  return request({
    url: '/huike-admin/count/' + id,
    method: 'get'
  })
}

// 新增tuyurt
export function addCount(data) {
  return request({
    url: '/huike-admin/count',
    method: 'post',
    data: data
  })
}

// 修改tuyurt
export function updateCount(data) {
  return request({
    url: '/huike-admin/count',
    method: 'put',
    data: data
  })
}

// 删除tuyurt
export function delCount(id) {
  return request({
    url: '/huike-admin/count/' + id,
    method: 'delete'
  })
}
// 查询嗵与列表
export function listRank(query) {
  return request({
    url: '/report/sale/list',
    method: 'get',
    params: query
  })
}

// 查询嗵与详细
export function getRank(id) {
  return request({
    url: '/system/rank/' + id,
    method: 'get'
  })
}

// 新增嗵与
export function addRank(data) {
  return request({
    url: '/system/rank',
    method: 'post',
    data: data
  })
}

// 修改嗵与
export function updateRank(data) {
  return request({
    url: '/system/rank',
    method: 'put',
    data: data
  })
}

// 删除嗵与
export function delRank(id) {
  return request({
    url: '/system/rank/' + id,
    method: 'delete'
  })
}


